In [1]:
using Plots
gr()
Out[1]:
In [13]:
base03=parse(Colorant,"#002b36");
base02=parse(Colorant,"#073642");
base01=parse(Colorant,"#586e75");
base00=parse(Colorant,"#657b83");
base0=parse(Colorant,"#839496");
base1=parse(Colorant,"#839496");
base2=parse(Colorant,"#eee8d5");
base3=parse(Colorant,"#fdf6e3");
yellow=parse(Colorant,"#b58900");
orange=parse(Colorant,"#cb4b16");
red=parse(Colorant,"#dc322f");
magenta=parse(Colorant,"#d33682");
violet=parse(Colorant,"#6c71c4");
blue=parse(Colorant,"#268bd2");
cyan=parse(Colorant,"#3aa198");
green=parse(Colorant,"#859900");
display([base03, base02, base01,base00,base0,base1,base2,base3])
display([yellow,orange,red,magenta,violet,blue,cyan,magenta])
In [2]:
x=collect(0:.1:4π)
y=cos.(x)
plot(x,y)
Out[2]:
In [3]:
scatter(x,y)
Out[3]:
In [4]:
bar(x,y)
Out[4]:
In [5]:
plot(sin, x->sin(2x), 0, 2π)
Out[5]:
In [6]:
# Note, hline(Real) doesn't work. Must be hline(Array{Real})
plot(x,y)
hline!([1])
hline!([0,-1])
vline!(0:π:4π)
Out[6]:
In [7]:
x2d=repmat(x,1,length(x))
y2d=repmat(transpose(x),length(x),1)
z2d=sin.(x2d).*sin.(y2d);
In [8]:
heatmap(x,x,z2d)
Out[8]:
The contour example from the website works, but any other thing I try with contour doesn't.
So... I'm leaving out a contour example.
In [9]:
histogram(randn(100))
Out[9]:
In [10]:
histogram2d(randn(1000),randn(1000))
Out[10]:
In [24]:
t=collect(0:0.01:8π)
x=cos.(t)
y=sin.(t)
z=t
plot(x,y,z)
Out[24]:
In [29]:
scatter3d(randn(50),randn(50),randn(50))
Out[29]:
In [23]:
pie_names=["area 1","area 2"]
pie_fraction=[0.4,0.6]
pie(pie_names,pie_fraction)
Out[23]:
In [ ]: